package com.mxw.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "order_tb")
public class Order {
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "ORDER_NO")
    private String orderNo;

    @TableField(value = "ACCOUNT_CODE")
    private String accountCode;

    @TableField(value = "PRODUCT_CODE")
    private String productCode;

    @TableField(value = "COUNT")
    private Integer count;

    @TableField(value = "AMOUNT")
    private BigDecimal amount;
}